import { defineAsyncComponent } from 'vue'
// 加载全局组件
export function setupComponents(app) {
  app.component(
    'Footer',
    defineAsyncComponent({
      loader: () => import('./Footer/index.vue')
    })
  )
  app.component(
    'Icon',
    defineAsyncComponent({
      loader: () => import('./Icon/index.vue')
    })
  )
  app.component(
    'CmsMenu',
    defineAsyncComponent({
      loader: () => import('./Menu/index.vue')
    })
  )
  app.component(
    'VueEditor',
    defineAsyncComponent({
      loader: () => import('./Editor/index.vue')
    })
  )
}
